<script lang="ts">
</script>
<script>
	import routingIntercept from '@/common/utils/permission.js'
	// #ifdef H5
	import './static/js/uni.webview.1.5.5.js'
	// #endif
	export default {
    onLaunch: function(options) {
			// 对路由进行统一拦截
			routingIntercept()
			if(options?.query?.fromDataCenter){
				uni.setStorageSync('fromDataCenter', options?.query?.fromDataCenter)
			}
			if(options?.query?.serviceCenterId){
				uni.setStorageSync('serviceCenterId', options?.query?.serviceCenterId)
			}
			if(options?.query?.token) {
				this.$store.commit('setLogin', {
					token: options.token
				})
			}
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import '@/common/css/index.scss';
	@import '@/common/css/common.scss';
</style>
